﻿using System;
using System.Collections.ObjectModel;
using Renren.Models;

namespace Renren.ViewModels
{
    public class PhotosViewModel : ViewModel
    {
        public ObservableCollection<PhotoModel> PhotoList { get; set; }

        public PhotosViewModel()
        {
            PhotoList = new ObservableCollection<PhotoModel>();
        }

        public override long Id
        {
            get
            {
                if (PhotoList.Count > 0)
                {
                    return PhotoList[0].AlbumId;
                }
                else
                {
                    throw new Exception("No photo found");
                }
            }
        }

        public override void Update(Model model)
        {
            throw new NotImplementedException();
        }
    }
}
